//
//  RadioTableViewCell.m
//  瓜子电台
//
//  Created by Jackson on 16/8/9.
//  Copyright © 2016年 YueZhang. All rights reserved.
//

#import "RadioTableViewCell.h"

@implementation RadioTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)cellConfigureWithShangHaiModel:(ShangHaiModel *)model {
    [self.header sd_setImageWithURL:[NSURL URLWithString:model.coverLarge] completed:nil];
    self.titleLabel.text = model.name;
    self.pragmaLabel.text = [NSString stringWithFormat:@"直播中：%@",model.programName];
    self.playCountLabel.text = [NSString stringWithFormat:@"收听人数：%.1lf万",(CGFloat)[model.playCount integerValue]/10000];
}

-(void)cellConfigureWithRankModel:(RankModel *)model {
    [self.header sd_setImageWithURL:[NSURL URLWithString:model.coverLarge] completed:nil];
    self.titleLabel.text = model.name;
    self.pragmaLabel.text = [NSString stringWithFormat:@"直播中：%@",model.programName];
    self.playCountLabel.text = [NSString stringWithFormat:@"收听人数：%.1lf万",(CGFloat)[model.playCount integerValue]/10000];
}

-(void)cellConfigureWithRadioModel:(RadioListModel *)model {
    [self.header sd_setImageWithURL:[NSURL URLWithString:model.coverLarge] completed:nil];
    self.titleLabel.text = model.name;
    self.pragmaLabel.text = [NSString stringWithFormat:@"直播中：%@",model.programName];
    self.playCountLabel.text = [NSString stringWithFormat:@"收听人数：%.1lf万",(CGFloat)[model.playCount integerValue]/10000];
}




@end
